package com.redoor.app.stake.basicdata.service;

import com.alibaba.druid.support.json.JSONUtils;
import com.redoor.app.stake.basicdata.model.LogEnum;
import com.redoornetwork.framework.data.redis.util.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wangjunlei on 2018/2/23.
 */

public interface LogService {

    /**
     * 添加日志记录到缓存
     * @param obj
     * @return
     */
    boolean addLogToRedis(Object obj,LogEnum logEnum);


    /**
     * 处理数据入库
     * @param times 获取记录数目
     */
    List getLogFromRedis(int times,LogEnum logEnum);
}
